<table id="default_table">
    <tr>
        <th>Name</th>
        <th>URL</th>
        <th>Category</th>
        <th>Date</th>
    </tr>
    <?php
    $lines = readData($fav_data);

    $i2 = 0;
    foreach ($lines as $line) {
        list($fav_id, $fav_name, $fav_url, $fav_cat, $fav_date) = explode("|", $line);
        if ($i2 % 2 > 0) {
            echo '<tr id="row_even">';
        } else {
            echo '<tr id="row_odd">';
        }
        $i2++;
    ?>
        <td><?php echo $fav_name; ?></td>
        <td><a href="<?php echo $fav_url; ?>"><?php echo $fav_url; ?></a></td>
        <td><?php echo $fav_cat; ?></td>
        <td><?php echo $fav_date; ?></td>
    </tr>
<?php
        $i++;
    } ?>
</table>
